package com.wanxi.faceobject;

public class WaterDispenser {
   private String brand;//私有化
   private String color;
   private int capacity;
   private String model;
   public WaterDispenser(){//无参数构造方法
       brand="一";
       color="二";
       capacity=3000;
       model="三";
   }

   public WaterDispenser(String brand,String color,int capacity,String model){//有参构造方法
       this.brand=brand;
       this.color=color;
       this.capacity=capacity;
       this.model=model;
   }

   public void show(){
       System.out.println(brand+" "+color+" "+capacity+" "+model);
   }




}
